<template>
  <div class="book_Introduction2">
    <div class="book_evaluation">
      <div class="book_ev1">
        <a>评分</a>
        <div class="book_ev1_star">
          <span>{{this.mybookData.rankValue}}</span>
          <span>分</span>
        </div>
      </div>
      <div class="book_ev2">
        <a>点击次数</a>
        <div class="book_ev1_star">
          <span>{{this.mybookData.clicksCount}}</span>
          <span>次</span>
        </div>
      </div>
      <div class="book_ev3">
        <a>字数</a>
        <div class="book_ev1_star">
          <span>{{this.mybookData.numberOfWords}}</span>
          <span>万字</span>
        </div>
      </div>
    </div>
    <div class="book_Introduction_text">
      {{ this.mybookData.content }}
    </div>

  </div>
</template>

<style lang="less">
.book_Introduction2 {
  height: 34vh;
  width: 100vw;
  .book_evaluation {
    display: inline-flex;
    width: 90vw;;
    height: 40%;
    margin: 2vw 5VW;
    background-color: #f5f5f5;
    .book_ev1,
    .book_ev2,
    .book_ev3 {
      flex-grow: 1;
      height: 11vh;
      width: 33%;
      padding: 10px;
      a{
        font-size: 12px;
        color: #000;
      }
      .book_ev1_star{
        font-size: 14px;
        color: #000;
      }
      .book_ev1_star span:nth-child(1){
        margin-top: 10px;
        display: inline-block;
        font-size: 14px;
        font-weight: bold;
      }
      .book_ev1_star span:nth-child(2){
        font-size: 12px;
      }
    }
      
  }
  .book_Introduction_text{
    text-align: left;
    width: 90vw;
    margin:  0 5VW;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

}
</style>
<script>

export default {
  name: 'shujijiehsaoView',
  data() {
    return {
      arr: [],
      mybookData: {
        bookid: "",
        bookname: "",
        // 点击次数
        clicksCount: 0,
        // 评分
        rankValue: 0,
        // 作者名称
        author: "",
        // 书籍内容
        content: "",
        // 字数 
        numberOfWords: "",
        // 图书类型 
        bookType: "",
        // 图书封面
        bg:"",
      }
    }
  },
  methods: {
    getmydata(data1,data2,data3,data4,data5,data6,data7,data8,data9){
      this.mybookData.bookid = data1;
      this.mybookData.bookname = data2;
      this.mybookData.clicksCount = data3;
      this.mybookData.rankValue = data4;
      this.mybookData.author = data5;
      this.mybookData.content = data6;
      this.mybookData.numberOfWords = data7;
      this.mybookData.bookType = data8;
      this.mybookData.bg = data9;
    }
  },

};
</script>
